#include "viewengine.h"

ViewEngine::ViewEngine(quint8 cacheSize):
mainView(NULL)
{
    cacheSize = qMin((quint8) 1, cacheSize);
    viewCache.reserve(cacheSize);
    for(quint8 i = 0; i < cacheSize; i++)
        viewCache.enqueue(new View());
//    mainView = viewCache[0];
}
